//  ********** Library dart:core **************
//  ********** Natives dart:core **************
// ********** Code for Object **************
// ********** Code for BadNumberFormatException **************
function BadNumberFormatException() {}
// ********** Code for top level **************
//  ********** Library dart:coreimpl **************
// ********** Code for NumImplementation **************
NumImplementation = Number;
// ********** Code for StringImplementation **************
StringImplementation = String;
StringImplementation.prototype.contains = function(pattern, startIndex) {
  return this.indexOf(pattern, startIndex) >= 0;
}
// ********** Code for top level **************
//  ********** Library DartChartWrapper **************
//  ********** Natives hello.js **************
// Callback that creates and populates a data table, 
// instantiates the pie chart, passes in the data and
// draws it.
drawChart = function() {
  var wrapper = new google.visualization.ChartWrapper({
          chartType: 'ColumnChart',
          dataTable: [['Germany', 'USA', 'Brazil', 'Canada', 'France', 'RU'],
                      [700, 300, 400, 500, 600, 800]],
          options: {'title': 'Countries'},
          containerId: 'chart_div'
        });
        wrapper.draw();
}

thisIsATest = function() {
  alert('foo');
}
// ********** Code for DartChartWrapper **************
function DartChartWrapper(chartType, containerId) {
  this.chartType = chartType;
  this.containerId = containerId;
  // Initializers done
  this.load_javascript();
  this.thisIsATest();
}
DartChartWrapper.prototype.load_javascript = function() {
    google.load('visualization', '1');
    google.setOnLoadCallback(drawChart);
}
// ********** Code for top level **************
function main() {
  new DartChartWrapper('ColumnChart', 'chart_div');
}
main();
